;;; package --- 功能性mode
;;; Commentary:
;;; Code:
(use-package restart-emacs
  :ensure t
  :defer t) ;emacs重启

;(use-package benchmark-init ;测试启动时间
;  :defer t
;  :init (benchmark-init/activate)
;  :hook (after-init . benchmark-init/deactivate))

;;; 翻译
(use-package youdao-dictionary
  :ensure t
  :defer t
  :config
  (setq url-automatic-caching t)
  :bind (
  ("C-c y" . 'youdao-dictionary-search-at-point+)
  ("C-c f" . 'youdao-dictionary-search)
  ("C-c v" . 'youdao-dictionary-play-voice-at-point)))


;; 括号补全
(use-package smartparens
  :ensure t
  :defer t
  :hook
  (prog-mode . smartparens-mode))

(use-package dirvish
  :ensure t
  :defer t
  :config
  (dirvish-override-dired-mode)
  (setq dirvish-depth 0)
  )


(provide 'function-package)
;;; function-package.el ends here
